package com.vainycos.lotterysearch.model.ro;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author: Vainycos
 * @description
 * @date: 2022/11/4 14:15
 */
@Data
public class DoubleColorRo {

    /**
     * 期号
     */
    @NotNull(message = "期数不能为空")
    private Integer periodId;

    /**
     * 红球1
     */
    @Max(value = 33, message = "红球范围是1-33")
    @Min(value = 1, message = "红球范围是1-33")
    private int redBallOne;

    /**
     * 红球2
     */
    @Max(value = 33, message = "红球范围是1-33")
    @Min(value = 1, message = "红球范围是1-33")
    private int redBallTwo;

    /**
     * 红球3
     */
    @Max(value = 33, message = "红球范围是1-33")
    @Min(value = 1, message = "红球范围是1-33")
    private int redBallThree;

    /**
     * 红球4
     */
    @Max(value = 33, message = "红球范围是1-33")
    @Min(value = 1, message = "红球范围是1-33")
    private int redBallFour;

    /**
     * 红球5
     */
    @Max(value = 33, message = "红球范围是1-33")
    @Min(value = 1, message = "红球范围是1-33")
    private int redBallFive;

    /**
     * 红球6
     */
    @Max(value = 33, message = "红球范围是1-33")
    @Min(value = 1, message = "红球范围是1-33")
    private int redBallSix;

    /**
     * 蓝球1
     */
    @Max(value = 16, message = "蓝球范围是1-16")
    @Min(value = 1, message = "蓝球范围是1-16")
    private int blueBallOne;

    /**
     * 用户输入的号码
     * @return
     */
    public String inputNumberResult(){
        return this.redBallOne + " "
                + this.redBallTwo + " "
                + this.redBallThree + " "
                + this.redBallFour + " "
                + this.redBallFive + " "
                + this.redBallSix + " "
                + this.blueBallOne;
    }
}
